import App from './App'
import http from '@/config/config.js'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

//公共链接
Vue.prototype.$IMG_URL = http.IMG_URL;
Vue.prototype.$BASE_URL = http.BASE_URL;
// 注册全局组件
import MescrollBody from "@/uni_modules/mescroll-uni/components/mescroll-body/mescroll-body.vue";
import MescrollUni from "@/uni_modules/mescroll-uni/components/mescroll-uni/mescroll-uni.vue";
import toastModel from "@/components/toast-model/toastModel.vue";

Vue.component('mescroll-body', MescrollBody);
Vue.component('mescroll-uni', MescrollUni);
Vue.component('toast-model', toastModel);

import share from '@/commom/js/share.js';
Vue.mixin(share)
//跳转封装
Vue.prototype.$navigateTo = (url) => {
	uni.navigateTo({
		url
	})
}

App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif

